
//点击回到顶部按钮
$(".rollback").click(function(){
    $("html,body").animate({scrollTop:"0px"},1000)

});
//滚动监听事件
$(window).scroll(function () {
    var foot_t=$("#footer").offset().top-665;
    if ($(window).scrollTop()>500){
        $(".rollback").css({"display":"inline-block"})
    }else{
        $(".rollback").css({"display":"none"})
    }

    if ($(window).scrollTop()>foot_t){
        $(".rollback").css({"position":"absolute","bottom":"300px"})
    }else{
        $(".rollback").css({"position":"fixed","bottom":"30px"})
    }

    var left_1=$("#footer").offset().top-1020;
    if ($(window).scrollTop()>146&&$(window).scrollTop()<left_1){
        $(".section_left").css({"position":"fixed","top":"0"})
    }else if($(window).scrollTop()>left_1){
        $(".section_left").css({"position":"absolute","bottom":"0","top":""})
    }
    else if($(window).scrollTop()<146){
        $(".section_left").css({"position": "relative"})
    }
});

//enterprise.html 轮播按钮
var lis=0;
$(".section_con2_right").click(function(){

    lis++;
    if ($(".conul1 li").length-6<lis){
        lis=0;
    }
    $(".conul1").css("left",-170*lis+"px");

});

$(".section_con2_left").click(function(){
    lis--;
    console.log(lis);

    if (lis<0){
        lis=$(".conul1 li").length-6;
    }
    $(".conul1").css("left",-170*lis+"px");
    // console.log(lis);


});